﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>泓源国际集团控股有限公司</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link href="~/Content/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Styles/login.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/login.js"></script>
</head>
<body>
    <div class="header">
        <div class="logo"></div>
        <div class="head">
            <a href="/system/registy"><i class="icon-user"></i>注册</a>
        </div>
    </div>

    <div class="body-content">
        <div class="login_head">系统登录</div>
        <div class="login_body">
            <div class="left">
                <img alt="" src="/images/forlogin.jpg" style="width: 366px; height: 224px;">
            </div>
            <div class="right">
                <form class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label" for="Account">账号</label>
                        <div class="controls">
                            <input type="text" id="Account" name="Account" placeholder="请输入帐号" value="">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Password">密码</label>
                        <div class="controls">
                            <input type="text" id="Password_txt" name="Password_txt" value="" placeholder="请输入密码">
                            <input type="password" id="Password" name="Password" value="" style="display:none;">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="ValidCode">验证码</label>
                        <div class="controls">
                            <input type="text" id="ValidCode" name="ValidCode">
                            <img alt="" src="/system/validcode" placholder="验证码" style="height: 30px; margin-left: 10px; cursor: pointer;" onclick="$(this).attr('src','/system/validcode?' +  Math.random())">
                        </div>
                    </div>
                </form>
                <div class="message"></div>
                <div class="linear"></div>
                <div>
                    <button type="button" class="login btn btn-info" onclick="login();">登录</button>
                    <a href="javascript:void(0);">忘记密码？</a>
                </div>
            </div>
        </div>
    </div>
</body>
    <script type="text/javascript">

        if (!('placeholder' in document.createElement('input'))) {
            $('input[placeholder],textarea[placeholder]').each(function () {
                var that = $(this),
                 text = that.attr('placeholder');
                if (that.val() === "") {
                    that.val(text).addClass('placeholder');
                }
                that.focus(function () {
                    if (that.val() === text) {
                        that.val("").removeClass('placeholder');
                    }
                })
                .blur(function () {
                    if (that.val() === "") {
                        that.val(text).addClass('placeholder');
                    }
                })
                .closest('form').submit(function () {
                    if (that.val() === text) {
                        that.val('');
                    }
                });
            });
        }

        var pwd = document.getElementById("Password");
        var pwd_text = document.getElementById("Password_txt");

        pwd_text.onfocus = function () {
            pwd.style.display = "inline";
            pwd_text.style.display = "none";
            pwd.focus();

        }

        pwd.onblur = function () {
            if (pwd.value == null || pwd.value == "" || pwd.value == "请输入密码") {
                pwd.style.display = "none";
                pwd_text.style.display = "inline";
            }
        }
    </script>
</html>
